package study;

public class MaoPaoSort {

	public void BigToSmall()
	{
		int[] arr = {-1,-5,12,0,89,23};
		for(int i =0;i<arr.length;i++)
		{
			for(int j =i+1;j<arr.length;j++)
			{
				if(arr[i]<arr[j])
				{
					int temp = 0;
					temp = arr[i];
					arr[i]=arr[j];
					arr[j] =temp;
				}
			}
		}
		for(int i = 0;i<arr.length;i++){
			System.out.println(arr[i]);
		}
	}
	public static void main(String[] args)
	{
		MaoPaoSort m = new MaoPaoSort();
		m.BigToSmall();
	}
}
